import { request } from 'ice';
import { getCurrentUser } from '@/services/account';

export default {
  state: {
    info: {}
  },

  reducers: {
    setInfo(state: any, info: any) {
      state.info = info;
    }
  },

  effects: (dispatch: any) => ({
    async initCurrentState() {
      getCurrentUser();
    },
  }),
};